import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import BMap from '../views/BMap.vue' // vue-charts 实现地图散点
import LiquidFill from '../views/LiquidFill.vue' // 水球图
import WordCloud from '../views/WordCloud.vue' // 词云图

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/bmap',
    name: 'BMap',
    component: BMap
  },
  {
    path: '/liquid',
    name: 'LiquidFill',
    component: LiquidFill
  },
  {
    path: '/cloud',
    name: 'WordCloud',
    component: WordCloud
  }
  // {
  //   path: '/about',
  //   name: 'About',
  //   component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  // }
]

const router = new VueRouter({
  mode: 'history',
  // base: process.env.BASE_URL,
  routes
})

export default router
